<?php
$ArDepartaments = Dracosys::getSessionValue(SESSION_INTERFACE, 'Report');
if( empty($ArDepartaments) ):
    foreach ($ArDepartaments as $Id => $Departament):
        $EvaluationReport = $Departament->getReport('AVALIACAO');
        $class = ($Id % 2 == 0) ? 'color1' : 'color2';
    ?>
        <tr class="<?= $class ?>">
            <td><?= $Departament->getStNome() ?></td>
            <td><?= $EvaluationReport['OTIMO'] ?></td>
            <td><?= $EvaluationReport['MUITO BOM'] ?></td>
            <td><?= $EvaluationReport['REGULAR'] ?></td>
            <td><?= $EvaluationReport['PESSIMO'] ?></td>
            <td><?= $EvaluationReport['TOTAL'] ?></td>
            <td>
                <a href="<?=DRA_URL?>avaliacao/visualizar-avaliacao/departamento/<?=$Departament->getIDDepartamento()?>">
                    <img src="<?=DRA_VIEW_URL?>images/descricao.png" alt="Visualizar Departamento" title="Visualizar" />
                </a>
            </td>
        </tr>
<?php
    endforeach;
endif;
?>